from pysage import Actor, ActorManager
from messages import *

omanager = ActorManager.get_singleton()

class MenuController(Actor):
    subscriptions = []
    def add_folder(self, path):
        if omanager.find('resourceparser').batch_import_path(path):
            omanager.queue_message(InitializeAlbumsViewerMessage())
        else:
            omanager.queue_message(FolderNotAdded(path=path))
            
            
            